package com.victor.dao;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import com.victor.entity.poi.PoiPhoto;
import com.victor.entity.poi.PoiSubmit;

@Mapper
public interface PoiSubmitDao {
    int deleteByPrimaryKey(Integer id);
    /**
     * poi上传
     * @param record
     * @return
     */
    boolean insertSelective(PoiSubmit record);

    PoiSubmit selectByPrimaryKey(Integer id);
    /**
     * 修改
     * @param record
     * @return
     */
    boolean updateByPrimaryKeySelective(PoiSubmit record);
    /**
     * 添加图片
     * @param poiphoto
     * @return
     */
    boolean insertPhoto(PoiPhoto poiphoto);
    /**
     * 查询全部 搜索  条件搜索
     * @param search
     * @param flag
     * @return
     */
	List<PoiSubmit> selAllOrSearchOrFlag(String search, String flag);
	/**
	 * 查询全部
	 * @return
	 */
	@Select("/select * from poisubmit")
	List<PoiSubmit> selAll();

}